package cool.houge.pig.infra.controller;

import cool.houge.pig.model.LoginChannel;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

/**
 * 微信登录控制器.
 *
 * @author KK (kzou227@qq.com)
 */
@Component
public class WeixinLoginController {

  /**
   * 微信小程序登录.
   *
   * @param request
   * @return
   */
  public Mono<ServerResponse> xcx(ServerRequest request, LoginChannel loginChannel) {
    System.out.println(request);
    System.out.println(loginChannel);
    return Mono.empty();
  }
}
